
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1. MobX 介绍 · MobX 中文文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="intro/overview.html" />
    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"SangKa","repo":"MobX-Docs-CN","type":"star","size":"small","count":true},{"user":"SangKa","repo":"MobX-Docs-CN","type":"fork","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    1. MobX 介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="intro/overview.html">
            
                <a href="intro/overview.html">
            
                    
                    1.1. MobX 要点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="intro/concepts.html">
            
                <a href="intro/concepts.html">
            
                    
                    1.2. 概念与原则
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="refguide/api.html">
            
                <a href="refguide/api.html">
            
                    
                    2. API概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    3. observable 相关
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="refguide/observable.html">
            
                <a href="refguide/observable.html">
            
                    
                    3.1. observable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="refguide/observable-decorator.html">
            
                <a href="refguide/observable-decorator.html">
            
                    
                    3.2. @observable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="refguide/object.html">
            
                <a href="refguide/object.html">
            
                    
                    3.3. objects
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="refguide/array.html">
            
                <a href="refguide/array.html">
            
                    
                    3.4. arrays
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="refguide/map.html">
            
                <a href="refguide/map.html">
            
                    
                    3.5. maps
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="refguide/boxed.html">
            
                <a href="refguide/boxed.html">
            
                    
                    3.6. boxed values
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="refguide/modifiers.html">
            
                <a href="refguide/modifiers.html">
            
                    
                    3.7 decorators
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    4. 对 observables 作出响应
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="refguide/computed-decorator.html">
            
                <a href="refguide/computed-decorator.html">
            
                    
                    4.1. (@)computed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="refguide/autorun.html">
            
                <a href="refguide/autorun.html">
            
                    
                    4.2. autorun
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="refguide/when.html">
            
                <a href="refguide/when.html">
            
                    
                    4.3. when
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="refguide/reaction.html">
            
                <a href="refguide/reaction.html">
            
                    
                    4.4. reaction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="refguide/observer-component.html">
            
                <a href="refguide/observer-component.html">
            
                    
                    4.5. (@)observer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="best/react.html">
            
                <a href="best/react.html">
            
                    
                    4.6. 理解 MobX 对何作出响应
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    5. 改变 observables
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="refguide/action.html">
            
                <a href="refguide/action.html">
            
                    
                    5.1. action
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="best/actions.html">
            
                <a href="best/actions.html">
            
                    
                    5.2. async actions & flows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="refguide/object-api.html">
            
                <a href="refguide/object-api.html">
            
                    
                    5.3. Object api
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    6. 工具函数
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="refguide/tojson.html">
            
                <a href="refguide/tojson.html">
            
                    
                    6.1. toJS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="refguide/extend-observable.html">
            
                <a href="refguide/extend-observable.html">
            
                    
                    6.2. extendObservable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="refguide/extending.html">
            
                <a href="refguide/extending.html">
            
                    
                    6.3. createAtom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="refguide/observe.html">
            
                <a href="refguide/observe.html">
            
                    
                    6.4. intercept & observe
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" >
            
                <a target="_blank" href="https://github.com/mobxjs/mobx-utils#frompromise">
            
                    
                    6.5. mobxUtils.fromPromise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" >
            
                <a target="_blank" href="https://github.com/mobxjs/mobx-utils#fromresource">
            
                    
                    6.6. mobxUtils.fromResource
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" >
            
                <a target="_blank" href="https://github.com/mobxjs/mobx-utils#tostream">
            
                    
                    6.7. mobxUtils.toStream
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" >
            
                <a target="_blank" href="https://github.com/mobxjs/mobx-utils#fromstream">
            
                    
                    6.8. mobxUtils.fromStream
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" >
            
                <a target="_blank" href="https://github.com/mobxjs/mobx-utils#now">
            
                    
                    6.9. mobxUtils.now
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="refguide/create-transformer.html">
            
                <a href="refguide/create-transformer.html">
            
                    
                    6.10. mobxUtils.createTransformer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="refguide/expr.html">
            
                <a href="refguide/expr.html">
            
                    
                    6.11. mobxUtils.expr
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" data-path="refguide/api.html">
            
                <a href="refguide/api.html">
            
                    
                    6.12. complete api overview
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <a target="_blank" href="https://github.com/mobxjs/awesome-mobx#examples">
            
                    
                    7. 博客、 视频及相关项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    8. 贴士与技巧
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="faq/faq.html">
            
                <a href="faq/faq.html">
            
                    
                    8.1. 常见问题解答
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="best/pitfalls.html">
            
                <a href="best/pitfalls.html">
            
                    
                    8.2. 常见陷阱与最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="best/decorators.html">
            
                <a href="best/decorators.html">
            
                    
                    8.3. 如何(不)使用装饰器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="best/trace.html">
            
                <a href="best/trace.html">
            
                    
                    8.4. 使用 trace 进行调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="best/store.html">
            
                <a href="best/store.html">
            
                    
                    8.5. 定义数据存储
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="best/react-performance.html">
            
                <a href="best/react-performance.html">
            
                    
                    8.6. 优化 React 组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="best/devtools.html">
            
                <a href="best/devtools.html">
            
                    
                    8.7. 开发工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="refguide/spy.html">
            
                <a href="refguide/spy.html">
            
                    
                    8.8. spy
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="donating.html">
            
                <a href="donating.html">
            
                    
                    9. 捐赠
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1. MobX 介绍</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <blockquote>
<p>&#x6B64;&#x4E2D;&#x6587;&#x6587;&#x6863;&#x4F1A;&#x4E0E;&#x5B98;&#x7F51;&#x6587;&#x6863;&#x4FDD;&#x6301;&#x540C;&#x6B65;</p>
<p>&#x6B22;&#x8FCE;&#x5927;&#x5BB6;&#x5171;&#x540C;&#x6765;&#x5B8C;&#x5584;&#x6B64;&#x6587;&#x6863;&#xFF0C;&#x4E3A;&#x56FD;&#x5185; MobX &#x7231;&#x597D;&#x8005;&#x63D0;&#x4F9B;&#x4E00;&#x4E2A;&#x66F4;&#x597D;&#x7684;&#x5B66;&#x4E60;&#x73AF;&#x5883;</p>
<p>Github &#x4ED3;&#x5E93;: <a href="https://github.com/SangKa/mobx-docs-cn" target="_blank">https://github.com/SangKa/mobx-docs-cn</a></p>
<p>&#x76EE;&#x524D;&#x6587;&#x6863;&#x5DF2;&#x540C;&#x6B65;&#x81F3; MobX 5&#xFF0C;&#x65E7;&#x7248;&#x6587;&#x6863;&#x94FE;&#x63A5;: <a href="https://github.com/SangKa/MobX-Docs-CN/tree/4.0.0/docs" target="_blank">MobX 4 (LTS)</a>&#x3001;<a href="https://github.com/SangKa/MobX-Docs-CN/tree/3.0.0/docs" target="_blank">MobX 3</a></p>
</blockquote>
<p><img src="mobx.png" alt="logo" height="120" align="right"></p>
<h1 id="mobx"><a name="mobx" class="plugin-anchor" href="#mobx"><i class="fa fa-link" aria-hidden="true"></i></a>MobX</h1>
<p><em>&#x7B80;&#x5355;&#x3001;&#x53EF;&#x6269;&#x5C55;&#x7684;&#x72B6;&#x6001;&#x7BA1;&#x7406;</em></p>
<p><a href="https://travis-ci.org/mobxjs/mobx" target="_blank"><img src="https://travis-ci.org/mobxjs/mobx.svg?branch=master" alt="Build Status"></a>
<a href="https://coveralls.io/github/mobxjs/mobx?branch=master" target="_blank"><img src="https://coveralls.io/repos/mobxjs/mobx/badge.svg?branch=master&amp;service=github" alt="Coverage Status"></a>
<a href="https://gitter.im/mobxjs/mobx?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge" target="_blank"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/mobxjs/mobx"></a>
<a href="https://hashnode.com/n/mobx" target="_blank"><img src="https://hashnode.github.io/badges/mobx.svg" alt="Discuss MobX on Hashnode"></a>
<a href="#backers"><img src="https://opencollective.com/mobx/backers/badge.svg" alt="OpenCollective"></a>
<a href="#sponsors"><img src="https://opencollective.com/mobx/sponsors/badge.svg" alt="OpenCollective"></a>
<a href="https://github.com/prettier/prettier" target="_blank"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="styled with prettier"></a></p>
<p>MobX &#x662F;&#x7531; Mendix&#x3001;Coinbase&#x3001;Facebook &#x5F00;&#x6E90;&#x548C;&#x4F17;&#x591A;<a href="#backers">&#x4E2A;&#x4EBA;&#x8D5E;&#x52A9;&#x5546;</a>&#x6240;&#x8D5E;&#x52A9;&#x7684;&#x3002;</p>
<p><img src="mendix-logo.png" align="center" width="100" title="Mendix" alt="Mendix"> <img src="coinbase.jpeg" align="center" width="100" title="Coinbase" alt="Coinbase"> <img src="fbos.jpeg" align="center" width="100" title="Facebook Open Source" alt="Facebook Open Source"></p>
<h1 id="&#x5B89;&#x88C5;"><a name="&#x5B89;&#x88C5;" class="plugin-anchor" href="#&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5;</h1>
<ul>
<li>&#x5B89;&#x88C5;: <code>npm install mobx --save</code>&#x3002; React &#x7ED1;&#x5B9A;&#x5E93;: <code>npm install mobx-react --save</code>&#x3002; &#x8981;&#x542F;&#x7528; ESNext &#x7684;&#x88C5;&#x9970;&#x5668; (&#x53EF;&#x9009;), &#x53C2;&#x89C1;&#x4E0B;&#x9762;&#x3002;</li>
<li>CDN:<ul>
<li><a href="https://unpkg.com/mobx/lib/mobx.umd.js" target="_blank">https://unpkg.com/mobx/lib/mobx.umd.js</a></li>
<li><a href="https://cdnjs.com/libraries/mobx" target="_blank">https://cdnjs.com/libraries/mobx</a></li>
</ul>
</li>
</ul>
<h1 id="&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;"><a name="&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;" class="plugin-anchor" href="#&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;</h1>
<ul>
<li>MobX &gt;=5 &#x7248;&#x672C;&#x8FD0;&#x884C;&#x5728;&#x4EFB;&#x4F55;<a href="https://kangax.github.io/compat-table/es6/#test-Proxy" target="_blank">&#x652F;&#x6301; ES6 proxy</a> &#x7684;&#x6D4F;&#x89C8;&#x5668;&#x3002;&#x5982;&#x679C;&#x8FD0;&#x884C;&#x5728;&#x50CF; IE11&#x3001;Node.js 6 &#x4EE5;&#x4E0B;&#x7248;&#x672C;&#x6216;&#x4F9D;&#x9760;&#x4E0E;&#x8F83;&#x65E7;&#x7684; JavaScripCore &#x7684;&#x5B89;&#x5353;&#x7AEF;&#x7684; React Native (<a href="https://github.com/react-community/jsc-android-buildscripts#how-to-use-it-with-my-react-native-app" target="_blank">&#x70B9;&#x51FB;&#x67E5;&#x770B;&#x5982;&#x4F55;&#x5347;&#x7EA7;]</a>)&#x3002;</li>
<li>MobX 4 &#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x5728;&#x4EFB;&#x4F55;&#x652F;&#x6301; ES5 &#x7684;&#x6D4F;&#x89C8;&#x5668;&#x4E0A;&#xFF0C;&#x800C;&#x4E14;&#x4E5F;&#x5C06;&#x8FDB;&#x884C;&#x6301;&#x7EED;&#x5730;&#x7EF4;&#x62A4;&#x3002;MobX 4 &#x548C; 5 &#x7684; API &#x662F;&#x76F8;&#x540C;&#x7684;&#xFF0C;&#x5E76;&#x4E14;&#x8BED;&#x4E49;&#x4E0A;&#x4E5F;&#x80FD;&#x8FBE;&#x5230;&#x76F8;&#x540C;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x53EA;&#x662F; MobX 4 &#x5B58;&#x5728;&#x4E00;&#x4E9B; <a href="#mobx-4-vs-mobx-5">&#x5C40;&#x9650;&#x6027;</a>&#x3002;</li>
</ul>
<p><em>&#x5C0F;&#x8D34;&#x58EB;: MobX 5 &#x5305;&#x7684;&#x4E3B;&#x5165;&#x53E3;&#x70B9;&#x9644;&#x5E26; ES5 &#x4EE3;&#x7801;&#xFF0C;&#x4EE5;&#x4FBF;&#x5411;&#x540E;&#x517C;&#x5BB9;&#x6240;&#x6709;&#x6784;&#x5EFA;&#x5DE5;&#x5177;&#x3002;&#x4F46;&#x56E0;&#x4E3A; MobX 5 &#x53EA;&#x80FD;&#x8FD0;&#x884C;&#x5728;&#x73B0;&#x4EE3;&#x6D4F;&#x89C8;&#x5668;&#x4E0A;&#xFF0C;&#x6240;&#x4EE5;&#x53EF;&#x4EE5;&#x8003;&#x8651;&#x4F7F;&#x7528;&#x901F;&#x5EA6;&#x6700;&#x5FEB;&#x3001;&#x4F53;&#x79EF;&#x6700;&#x5C0F;&#x7684; ES6 &#x6784;&#x5EFA;: <code>lib/mobx.es6.js</code> &#x3002;&#x4F8B;&#x5982;&#xFF0C;&#x901A;&#x8FC7;&#x8BBE;&#x7F6E; webpack &#x7684;&#x522B;&#x540D;: <code>resolve: { alias: { mobx: __dirname + &quot;/node_modules/mobx/lib/mobx.es6.js&quot; }}</code></em></p>
<h2 id="&#x5165;&#x95E8;&#x6307;&#x5357;"><a name="&#x5165;&#x95E8;&#x6307;&#x5357;" class="plugin-anchor" href="#&#x5165;&#x95E8;&#x6307;&#x5357;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5165;&#x95E8;&#x6307;&#x5357;</h2>
<ul>
<li><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/courses/manage-complex-state-in-react-apps-with-mobx" target="_blank">egghead.io &#x8BFE;&#x7A0B;</a></i></li>
<li><a href="https://mobxjs.github.io/mobx/getting-started.html" target="_blank">&#x5341;&#x5206;&#x949F;&#x4EA4;&#x4E92;&#x5F0F;&#x7684; MobX + React &#x6559;&#x7A0B;</a></li>
<li><img src="images/book.jpg" height="80px"> &#x7531; Pavan Podila &#x548C; Michel Weststrate &#x64B0;&#x5199;&#x7684; <a href="https://books.google.nl/books?id=ALFmDwAAQBAJ&amp;pg=PP1&amp;lpg=PP1&amp;dq=michel+weststrate+mobx+quick+start+guide:+supercharge+the+client+state+in+your+react+apps+with+mobx&amp;source=bl&amp;ots=D460fxti0F&amp;sig=ivDGTxsPNwlOjLHrpKF1nweZFl8&amp;hl=nl&amp;sa=X&amp;ved=2ahUKEwiwl8XO--ncAhWPmbQKHWOYBqIQ6AEwAnoECAkQAQ#v=onepage&amp;q=michel%20weststrate%20mobx%20quick%20start%20guide%3A%20supercharge%20the%20client%20state%20in%20your%20react%20apps%20with%20mobx&amp;f=false" target="_blank">MobX &#x4E66;&#x7C4D;</a> (&#x975E;&#x5E38;&#x4E0D;&#x559C;&#x6B22;xx&#x6DF1;&#x5165;&#x7684;&#x4E66;&#x540D;&#xFF01;)</li>
<li><a href="http://cn.mobx.js.org/refguide/api.html" target="_blank">MobX 4&#x5B98;&#x65B9;&#x6587;&#x6863;&#x548C;API&#x6982;&#x89C8;</a> (<a href="https://github.com/mobxjs/mobx/blob/54557dc319b04e92e31cb87427bef194ec1c549c/docs/refguide/api.md" target="_blank">MobX 3</a>, <a href="https://github.com/mobxjs/mobx/blob/7c9e7c86e0c6ead141bb0539d33143d0e1f576dd/docs/refguide/api.md" target="_blank">MobX 2</a>)</li>
<li>&#x89C6;&#x9891;:<ul>
<li><a href="https://www.youtube.com/watch?v=Aws40KOx90U" target="_blank">ReactNext 2016: &#x771F;&#x5B9E;&#x4E16;&#x754C;&#x7684; MobX</a> - 40&#x5206;&#x949F; <a href="https://docs.google.com/presentation/d/1DrI6Hc2xIPTLBkfNH8YczOcPXQTOaCIcDESdyVfG_bE/edit?usp=sharing" target="_blank">&#x5E7B;&#x706F;&#x7247;</a></li>
<li><a href="https://www.youtube.com/watch?v=XGwuM_u7UeQ" target="_blank">React &#x548C; MobX &#x5B9E;&#x6218;</a>. OpenSourceNorth &#x5F00;&#x53D1;&#x8005;&#x5927;&#x4F1A;&#x4E0A;&#xFF0C;Matt Ruby &#x6DF1;&#x5165;&#x4ECB;&#x7ECD;&#x548C;&#x8BF4;&#x660E;&#x5982;&#x4F55;&#x4F7F;&#x7528;MobX&#x548C;React(ES5&#x7248;&#x672C;) - 42&#x5206;&#x949F;</li>
<li>LearnCode.academy MobX &#x6559;&#x7A0B; <a href="https://www.youtube.com/watch?v=_q50BXqkAfI" target="_blank">&#x7B2C;&#x4E00;&#x90E8;&#x5206;: MobX + React &#x592A;&#x68D2;&#x4E86; (7&#x5206;&#x949F;)</a> <a href="https://www.youtube.com/watch?v=nYvNqKrl69s" target="_blank">&#x7B2C;&#x4E8C;&#x90E8;&#x5206;: Computed Values and &#x5D4C;&#x5957;/&#x5F15;&#x7528;&#x7684; Observables (12&#x5206;&#x949F;)</a></li>
<li><a href="https://www.youtube.com/watch?v=K8dr8BMU7-8" target="_blank">&#x5F55;&#x64AD;: MobX &#x4ECB;&#x7ECD;</a> - 8&#x5206;&#x949F;</li>
<li><a href="https://www.youtube.com/watch?v=ApmSsu3qnf0&amp;feature=youtu.be" target="_blank">&#x8BBF;&#x8C08;: &#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5F88;&#x5BB9;&#x6613; - React Amsterdam 2016 &#x5F00;&#x53D1;&#x8005;&#x5927;&#x4F1A;</a> (<a href="https://speakerdeck.com/mweststrate/state-management-is-easy-introduction-to-mobx" target="_blank">&#x5E7B;&#x706F;&#x7247;</a>)</li>
</ul>
</li>
<li><a href="http://mobxjs.github.io/mobx/faq/boilerplates.html" target="_blank">&#x6837;&#x677F;&#x6587;&#x4EF6;&#x548C;&#x76F8;&#x5173;&#x9879;&#x76EE;</a></li>
<li>&#x66F4;&#x591A;&#x6559;&#x7A0B;&#x3001;&#x535A;&#x5BA2;&#x548C;&#x89C6;&#x9891;&#x5C3D;&#x5728; <a href="http://mobxjs.github.io/mobx/faq/blogs.html" target="_blank">MobX &#x4E3B;&#x9875;</a></li>
<li>&#x66F4;&#x591A;&#x6559;&#x7A0B;&#x3001;&#x535A;&#x5BA2;&#x3001;&#x89C6;&#x9891;&#x548C;&#x5176;&#x4ED6;&#x6709;&#x7528;&#x7684;&#x8D44;&#x6E90;&#x5C3D;&#x5728; <a href="https://github.com/mobxjs/awesome-mobx/blob/master/README-CN.md" target="_blank">Awesome MobX</a></li>
</ul>
<h2 id="&#x5165;&#x95E8;"><a name="&#x5165;&#x95E8;" class="plugin-anchor" href="#&#x5165;&#x95E8;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5165;&#x95E8;</h2>
<p>MobX &#x662F;&#x4E00;&#x4E2A;&#x7ECF;&#x8FC7;&#x6218;&#x706B;&#x6D17;&#x793C;&#x7684;&#x5E93;&#xFF0C;&#x5B83;&#x901A;&#x8FC7;&#x900F;&#x660E;&#x7684;&#x51FD;&#x6570;&#x54CD;&#x5E94;&#x5F0F;&#x7F16;&#x7A0B;(transparently applying functional reactive programming - TFRP)&#x4F7F;&#x5F97;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x53D8;&#x5F97;&#x7B80;&#x5355;&#x548C;&#x53EF;&#x6269;&#x5C55;&#x3002;MobX&#x80CC;&#x540E;&#x7684;&#x54F2;&#x5B66;&#x5F88;&#x7B80;&#x5355;:</p>
<p><em>&#x4EFB;&#x4F55;&#x6E90;&#x81EA;&#x5E94;&#x7528;&#x72B6;&#x6001;&#x7684;&#x4E1C;&#x897F;&#x90FD;&#x5E94;&#x8BE5;&#x81EA;&#x52A8;&#x5730;&#x83B7;&#x5F97;&#x3002;</em></p>
<p>&#x5176;&#x4E2D;&#x5305;&#x62EC;UI&#x3001;&#x6570;&#x636E;&#x5E8F;&#x5217;&#x5316;&#x3001;&#x670D;&#x52A1;&#x5668;&#x901A;&#x8BAF;&#xFF0C;&#x7B49;&#x7B49;&#x3002;</p>
<p><img alt="MobX unidirectional flow" src="flow.png" align="center"></p>
<p>React &#x548C; MobX &#x662F;&#x4E00;&#x5BF9;&#x5F3A;&#x529B;&#x7EC4;&#x5408;&#x3002;React &#x901A;&#x8FC7;&#x63D0;&#x4F9B;&#x673A;&#x5236;&#x628A;&#x5E94;&#x7528;&#x72B6;&#x6001;&#x8F6C;&#x6362;&#x4E3A;&#x53EF;&#x6E32;&#x67D3;&#x7EC4;&#x4EF6;&#x6811;&#x5E76;&#x5BF9;&#x5176;&#x8FDB;&#x884C;&#x6E32;&#x67D3;&#x3002;&#x800C;MobX&#x63D0;&#x4F9B;&#x673A;&#x5236;&#x6765;&#x5B58;&#x50A8;&#x548C;&#x66F4;&#x65B0;&#x5E94;&#x7528;&#x72B6;&#x6001;&#x4F9B; React &#x4F7F;&#x7528;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x4E2D;&#x7684;&#x5E38;&#x89C1;&#x95EE;&#x9898;&#xFF0C;React &#x548C; MobX &#x90FD;&#x63D0;&#x4F9B;&#x4E86;&#x6700;&#x4F18;&#x548C;&#x72EC;&#x7279;&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x3002;React &#x63D0;&#x4F9B;&#x4E86;&#x4F18;&#x5316;UI&#x6E32;&#x67D3;&#x7684;&#x673A;&#x5236;&#xFF0C; &#x8FD9;&#x79CD;&#x673A;&#x5236;&#x5C31;&#x662F;&#x901A;&#x8FC7;&#x4F7F;&#x7528;&#x865A;&#x62DF;DOM&#x6765;&#x51CF;&#x5C11;&#x6602;&#x8D35;&#x7684;DOM&#x53D8;&#x5316;&#x7684;&#x6570;&#x91CF;&#x3002;MobX &#x63D0;&#x4F9B;&#x4E86;&#x4F18;&#x5316;&#x5E94;&#x7528;&#x72B6;&#x6001;&#x4E0E; React &#x7EC4;&#x4EF6;&#x540C;&#x6B65;&#x7684;&#x673A;&#x5236;&#xFF0C;&#x8FD9;&#x79CD;&#x673A;&#x5236;&#x5C31;&#x662F;&#x4F7F;&#x7528;&#x54CD;&#x5E94;&#x5F0F;&#x865A;&#x62DF;&#x4F9D;&#x8D56;&#x72B6;&#x6001;&#x56FE;&#x8868;&#xFF0C;&#x5B83;&#x53EA;&#x6709;&#x5728;&#x771F;&#x6B63;&#x9700;&#x8981;&#x7684;&#x65F6;&#x5019;&#x624D;&#x66F4;&#x65B0;&#x5E76;&#x4E14;&#x6C38;&#x8FDC;&#x4FDD;&#x6301;&#x662F;&#x6700;&#x65B0;&#x7684;&#x3002;</p>
<h2 id="&#x6838;&#x5FC3;&#x6982;&#x5FF5;"><a name="&#x6838;&#x5FC3;&#x6982;&#x5FF5;" class="plugin-anchor" href="#&#x6838;&#x5FC3;&#x6982;&#x5FF5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6838;&#x5FC3;&#x6982;&#x5FF5;</h2>
<p>MobX &#x7684;&#x6838;&#x5FC3;&#x6982;&#x5FF5;&#x4E0D;&#x591A;&#x3002; &#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x53EF;&#x4EE5;&#x5728; <a href="https://codesandbox.io/s/v3v0my2370" target="_blank">codesandbox &#x793A;&#x4F8B;</a>&#x4E2D;&#x5728;&#x7EBF;&#x8BD5;&#x7528;&#x3002;</p>
<h3 id="observable-state&#x53EF;&#x89C2;&#x5BDF;&#x7684;&#x72B6;&#x6001;"><a name="observable-state&#x53EF;&#x89C2;&#x5BDF;&#x7684;&#x72B6;&#x6001;" class="plugin-anchor" href="#observable-state&#x53EF;&#x89C2;&#x5BDF;&#x7684;&#x72B6;&#x6001;"><i class="fa fa-link" aria-hidden="true"></i></a>Observable state(&#x53EF;&#x89C2;&#x5BDF;&#x7684;&#x72B6;&#x6001;)</h3>
<p><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/lessons/javascript-sync-the-ui-with-the-app-state-using-mobx-observable-and-observer-in-react" target="_blank">Egghead.io &#x7B2C;1&#x8BFE;: observable &amp; observer</a></i></p>
<p>MobX &#x4E3A;&#x73B0;&#x6709;&#x7684;&#x6570;&#x636E;&#x7ED3;&#x6784;(&#x5982;&#x5BF9;&#x8C61;&#xFF0C;&#x6570;&#x7EC4;&#x548C;&#x7C7B;&#x5B9E;&#x4F8B;)&#x6DFB;&#x52A0;&#x4E86;&#x53EF;&#x89C2;&#x5BDF;&#x7684;&#x529F;&#x80FD;&#x3002;
&#x901A;&#x8FC7;&#x4F7F;&#x7528; <a href="http://cn.mobx.js.org/refguide/observable-decorator.html" target="_blank">@observable</a> &#x88C5;&#x9970;&#x5668;(ES.Next)&#x6765;&#x7ED9;&#x4F60;&#x7684;&#x7C7B;&#x5C5E;&#x6027;&#x6DFB;&#x52A0;&#x6CE8;&#x89E3;&#x5C31;&#x53EF;&#x4EE5;&#x7B80;&#x5355;&#x5730;&#x5B8C;&#x6210;&#x8FD9;&#x4E00;&#x5207;&#x3002;</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">import</span> { observable } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;mobx&quot;</span>;

<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Todo</span> </span>{
    id = <span class="hljs-built_in">Math</span>.random();
    @observable title = <span class="hljs-string">&quot;&quot;</span>;
    @observable finished = <span class="hljs-literal">false</span>;
}
</code></pre>
<p>&#x4F7F;&#x7528; <code>observable</code> &#x5F88;&#x50CF;&#x628A;&#x5BF9;&#x8C61;&#x7684;&#x5C5E;&#x6027;&#x53D8;&#x6210;excel&#x7684;&#x5355;&#x5143;&#x683C;&#x3002;
&#x4F46;&#x548C;&#x5355;&#x5143;&#x683C;&#x4E0D;&#x540C;&#x7684;&#x662F;&#xFF0C;&#x8FD9;&#x4E9B;&#x503C;&#x4E0D;&#x53EA;&#x662F;&#x539F;&#x59CB;&#x503C;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x662F;&#x5F15;&#x7528;&#x503C;&#xFF0C;&#x6BD4;&#x5982;&#x5BF9;&#x8C61;&#x548C;&#x6570;&#x7EC4;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x7684;&#x73AF;&#x5883;&#x4E0D;&#x652F;&#x6301;&#x88C5;&#x9970;&#x5668;&#x8BED;&#x6CD5;&#xFF0C;&#x4E5F;&#x4E0D;&#x5FC5;&#x62C5;&#x5FC3;&#x3002;
&#x4F60;&#x53EF;&#x4EE5;&#x70B9;&#x51FB;<a href="best/decorators.html">&#x8FD9;&#x91CC;</a>&#x67E5;&#x770B;&#x5982;&#x4F55;&#x8FDB;&#x884C;&#x8BBE;&#x7F6E;&#x3002;
&#x6216;&#x8005;&#x4F60;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8DF3;&#x8FC7;&#x8BBE;&#x7F6E;&#xFF0C;&#x56E0;&#x4E3A; MobX &#x53EF;&#x4EE5;&#x901A;&#x8FC7; <em>decorate</em> &#x5DE5;&#x5177;&#x5728;&#x4E0D;&#x652F;&#x6301;&#x88C5;&#x9970;&#x5668;&#x8BED;&#x6CD5;&#x7684;&#x60C5;&#x51B5;&#x52A0;&#x4F7F;&#x7528;&#x3002;
&#x5C3D;&#x7BA1;&#x5982;&#x6B64;&#xFF0C;&#x591A;&#x6570; MobX &#x7528;&#x6237;&#x66F4;&#x559C;&#x6B22;&#x88C5;&#x9970;&#x5668;&#x8BED;&#x6CD5;&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x66F4;&#x7B80;&#x6D01;&#x3002;</p>
<p>&#x4F8B;&#x5982;&#xFF0C;&#x4E0A;&#x9762;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#x7684;ES5&#x7248;&#x672C;&#x5E94;&#x8BE5;&#x662F;&#x8FD9;&#x6837;:</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">import</span> { decorate, observable } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;mobx&quot;</span>;

<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Todo</span> </span>{
    id = <span class="hljs-built_in">Math</span>.random();
    title = <span class="hljs-string">&quot;&quot;</span>;
    finished = <span class="hljs-literal">false</span>;
}
decorate(Todo, {
    title: observable,
    finished: observable
})
</code></pre>
<h3 id="computed-values&#x8BA1;&#x7B97;&#x503C;"><a name="computed-values&#x8BA1;&#x7B97;&#x503C;" class="plugin-anchor" href="#computed-values&#x8BA1;&#x7B97;&#x503C;"><i class="fa fa-link" aria-hidden="true"></i></a>Computed values(&#x8BA1;&#x7B97;&#x503C;)</h3>
<p><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/lessons/javascript-derive-computed-values-and-manage-side-effects-with-mobx-reactions" target="_blank">Egghead.io &#x7B2C;3&#x8BFE;: &#x8BA1;&#x7B97;&#x503C;</a></i></p>
<p>&#x4F7F;&#x7528; MobX&#xFF0C; &#x4F60;&#x53EF;&#x4EE5;&#x5B9A;&#x4E49;&#x5728;&#x76F8;&#x5173;&#x6570;&#x636E;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#x81EA;&#x52A8;&#x66F4;&#x65B0;&#x7684;&#x503C;&#x3002;
&#x901A;&#x8FC7;<a href="http://cn.mobx.js.org/refguide/computed-decorator.html" target="_blank"><code>@computed</code></a> &#x88C5;&#x9970;&#x5668;&#x6216;&#x8005;&#x5229;&#x7528; <code>(extend)Observable</code> &#x65F6;&#x8C03;&#x7528; &#x7684;getter / setter &#x51FD;&#x6570;&#x6765;&#x8FDB;&#x884C;&#x4F7F;&#x7528;&#x3002;(&#x5F53;&#x7136;&#xFF0C;&#x8FD9;&#x91CC;&#x4E5F;&#x53EF;&#x4EE5;&#x518D;&#x6B21;&#x4F7F;&#x7528; <code>decorate</code> &#x6765;&#x66FF;&#x4EE3; <code>@</code> &#x8BED;&#x6CD5;)&#x3002;</p>
<pre><code class="lang-javascript"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">TodoList</span> </span>{
    @observable todos = [];
    @computed get unfinishedTodoCount() {
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.todos.filter(todo =&gt; !todo.finished).length;
    }
}
</code></pre>
<p>&#x5F53;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x7684;todo&#x6216;&#x8005;&#x67D0;&#x4E2A;todo&#x7684; <code>finished</code> &#x5C5E;&#x6027;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#xFF0C;MobX &#x4F1A;&#x786E;&#x4FDD; <code>unfinishedTodoCount</code> &#x81EA;&#x52A8;&#x66F4;&#x65B0;&#x3002;
&#x50CF;&#x8FD9;&#x6837;&#x7684;&#x8BA1;&#x7B97;&#x53EF;&#x4EE5;&#x7C7B;&#x4F3C;&#x4E8E; MS Excel &#x8FD9;&#x6837;&#x7535;&#x5B50;&#x8868;&#x683C;&#x7A0B;&#x5E8F;&#x4E2D;&#x7684;&#x516C;&#x5F0F;&#x3002;&#x6BCF;&#x5F53;&#x53EA;&#x6709;&#x5728;&#x9700;&#x8981;&#x5B83;&#x4EEC;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5B83;&#x4EEC;&#x624D;&#x4F1A;&#x81EA;&#x52A8;&#x66F4;&#x65B0;&#x3002;</p>
<h3 id="reactions&#x53CD;&#x5E94;"><a name="reactions&#x53CD;&#x5E94;" class="plugin-anchor" href="#reactions&#x53CD;&#x5E94;"><i class="fa fa-link" aria-hidden="true"></i></a>Reactions(&#x53CD;&#x5E94;)</h3>
<p><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/lessons/react-write-custom-mobx-reactions-with-when-and-autorun" target="_blank">Egghead.io &#x7B2C;9&#x8BFE;: &#x81EA;&#x5B9A;&#x4E49;&#x53CD;&#x5E94;</a></i></p>
<p>Reactions &#x548C;&#x8BA1;&#x7B97;&#x503C;&#x5F88;&#x50CF;&#xFF0C;&#x4F46;&#x5B83;&#x4E0D;&#x662F;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x503C;&#xFF0C;&#x800C;&#x662F;&#x4F1A;&#x4EA7;&#x751F;&#x4E00;&#x4E9B;&#x526F;&#x4F5C;&#x7528;&#xFF0C;&#x6BD4;&#x5982;&#x6253;&#x5370;&#x5230;&#x63A7;&#x5236;&#x53F0;&#x3001;&#x7F51;&#x7EDC;&#x8BF7;&#x6C42;&#x3001;&#x9012;&#x589E;&#x5730;&#x66F4;&#x65B0; React &#x7EC4;&#x4EF6;&#x6811;&#x4EE5;&#x4FEE;&#x8865;DOM&#x3001;&#x7B49;&#x7B49;&#x3002;
&#x7B80;&#x800C;&#x8A00;&#x4E4B;&#xFF0C;reactions &#x5728; <a href="https://en.wikipedia.org/wiki/Reactive_programming" target="_blank">&#x54CD;&#x5E94;&#x5F0F;&#x7F16;&#x7A0B;</a>&#x548C;<a href="https://en.wikipedia.org/wiki/Imperative_programming" target="_blank">&#x547D;&#x4EE4;&#x5F0F;&#x7F16;&#x7A0B;</a>&#x4E4B;&#x95F4;&#x5EFA;&#x7ACB;&#x6C9F;&#x901A;&#x7684;&#x6865;&#x6881;&#x3002;</p>
<h4 id="react-&#x7EC4;&#x4EF6;"><a name="react-&#x7EC4;&#x4EF6;" class="plugin-anchor" href="#react-&#x7EC4;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>React &#x7EC4;&#x4EF6;</h4>
<p><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/courses/manage-complex-state-in-react-apps-with-mobx" target="_blank">Egghead.io &#x7B2C;1&#x8BFE;: observable &amp; observer</a></i></p>
<p>&#x5982;&#x679C;&#x4F60;&#x7528; React &#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x4EE5;&#x628A;&#x4F60;&#x7684;(&#x65E0;&#x72B6;&#x6001;&#x51FD;&#x6570;)&#x7EC4;&#x4EF6;&#x53D8;&#x6210;&#x54CD;&#x5E94;&#x5F0F;&#x7EC4;&#x4EF6;&#xFF0C;&#x65B9;&#x6CD5;&#x662F;&#x5728;&#x7EC4;&#x4EF6;&#x4E0A;&#x6DFB;&#x52A0; <a href="http://cn.mobx.js.org/refguide/observable-decorator.html" target="_blank"><code>observer</code></a> &#x51FD;&#x6570;/ &#x88C5;&#x9970;&#x5668;. <code>observer</code>&#x7531; <code>mobx-react</code> &#x5305;&#x63D0;&#x4F9B;&#x7684;&#x3002;</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">import</span> React, {Component} <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;react&apos;</span>;
<span class="hljs-keyword">import</span> ReactDOM <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;react-dom&apos;</span>;
<span class="hljs-keyword">import</span> {observer} <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;mobx-react&apos;</span>;

@observer
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">TodoListView</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">Component</span> </span>{
    render() {
        <span class="hljs-keyword">return</span> &lt;div&gt;
            &lt;ul&gt;
                {this.props.todoList.todos.map(todo =&gt;
                    &lt;TodoView todo={todo} key={todo.id} /&gt;
                )}
            &lt;/ul&gt;
            Tasks left: {this.props.todoList.unfinishedTodoCount}
        &lt;/div&gt;
    }
}

const TodoView = observer(({todo}) =&gt;
    &lt;li&gt;
        &lt;input
            type=&quot;checkbox&quot;
            checked={todo.finished}
            onClick={() =&gt; todo.finished = !todo.finished}
        /&gt;{todo.title}
    &lt;/li&gt;
)

const store = new TodoList();
ReactDOM.render(&lt;TodoListView todoList={store} /&gt;, document.getElementById(&apos;mount&apos;));
</code></pre>
<p><code>observer</code> &#x4F1A;&#x5C06; React (&#x51FD;&#x6570;)&#x7EC4;&#x4EF6;&#x8F6C;&#x6362;&#x4E3A;&#x5B83;&#x4EEC;&#x9700;&#x8981;&#x6E32;&#x67D3;&#x7684;&#x6570;&#x636E;&#x7684;&#x884D;&#x751F;&#x3002;
&#x4F7F;&#x7528; MobX &#x65F6;&#x6CA1;&#x6709;&#x6240;&#x8C13;&#x7684;&#x667A;&#x80FD;&#x548C;&#x65E0;&#x8111;&#x7EC4;&#x4EF6;&#x3002;
&#x6240;&#x6709;&#x7684;&#x7EC4;&#x4EF6;&#x90FD;&#x4F1A;&#x4EE5;&#x5DE7;&#x5999;&#x7684;&#x65B9;&#x5F0F;&#x8FDB;&#x884C;&#x6E32;&#x67D3;&#xFF0C;&#x800C;&#x53EA;&#x9700;&#x8981;&#x4E00;&#x79CD;&#x7B80;&#x5355;&#x65E0;&#x8111;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5B9A;&#x4E49;&#x5B83;&#x4EEC;&#x3002;MobX &#x4F1A;&#x786E;&#x4FDD;&#x7EC4;&#x4EF6;&#x603B;&#x662F;&#x5728;&#x9700;&#x8981;&#x7684;&#x65F6;&#x91CD;&#x65B0;&#x6E32;&#x67D3;&#xFF0C;&#x4F46;&#x4EC5;&#x6B64;&#x800C;&#x5DF2;&#x3002;&#x6240;&#x4EE5;&#x4E0A;&#x9762;&#x4F8B;&#x5B50;&#x4E2D;&#x7684; <code>onClick</code> &#x5904;&#x7406;&#x65B9;&#x6CD5;&#x4F1A;&#x5F3A;&#x5236;&#x5BF9;&#x5E94;&#x7684; <code>TodoView</code> &#x8FDB;&#x884C;&#x6E32;&#x67D3;&#xFF0C;&#x5982;&#x679C;&#x672A;&#x5B8C;&#x6210;&#x4EFB;&#x52A1;&#x7684;&#x6570;&#x91CF;(unfinishedTodoCount)&#x5DF2;&#x7ECF;&#x6539;&#x53D8;&#xFF0C;&#x5B83;&#x5C06;&#x5BFC;&#x81F4; <code>TodoListView</code> &#x8FDB;&#x884C;&#x6E32;&#x67D3;&#x3002;
&#x53EF;&#x662F;&#xFF0C;&#x5982;&#x679C;&#x79FB;&#x9664; <code>Tasks left</code> &#x8FD9;&#x884C;&#x4EE3;&#x7801;(&#x6216;&#x8005;&#x5C06;&#x5B83;&#x653E;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x4E2D;)&#xFF0C;&#x5F53;&#x70B9;&#x51FB; <code>checkbox</code> &#x7684;&#x65F6;&#x5019; <code>TodoListView</code> &#x5C31;&#x4E0D;&#x518D;&#x91CD;&#x65B0;&#x6E32;&#x67D3;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x5728; <a href="https://jsfiddle.net/mweststrate/wv3yopo0/" target="_blank">JSFiddle</a> &#x4E2D;&#x81EA;&#x5DF1;&#x52A8;&#x624B;&#x6765;&#x9A8C;&#x8BC1;&#x8FD9;&#x70B9;&#x3002;</p>
<h4 id="&#x81EA;&#x5B9A;&#x4E49;-reactions"><a name="&#x81EA;&#x5B9A;&#x4E49;-reactions" class="plugin-anchor" href="#&#x81EA;&#x5B9A;&#x4E49;-reactions"><i class="fa fa-link" aria-hidden="true"></i></a>&#x81EA;&#x5B9A;&#x4E49; reactions</h4>
<p>&#x4F7F;&#x7528;<a href="http://cn.mobx.js.org/refguide/autorun.html" target="_blank"><code>autorun</code></a>&#x3001;<a href="http://cn.mobx.js.org/refguide/reaction.html" target="_blank"><code>reaction</code></a> &#x548C; <a href="http://cn.mobx.js.org/refguide/when.html" target="_blank"><code>when</code></a> &#x51FD;&#x6570;&#x5373;&#x53EF;&#x7B80;&#x5355;&#x7684;&#x521B;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49; reactions&#xFF0C;&#x4EE5;&#x6EE1;&#x8DB3;&#x4F60;&#x7684;&#x5177;&#x4F53;&#x573A;&#x666F;&#x3002;</p>
<p>&#x4F8B;&#x5982;&#xFF0C;&#x6BCF;&#x5F53; <code>unfinishedTodoCount</code> &#x7684;&#x6570;&#x91CF;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#xFF0C;&#x4E0B;&#x9762;&#x7684; <code>autorun</code> &#x4F1A;&#x6253;&#x5370;&#x65E5;&#x5FD7;&#x6D88;&#x606F;:</p>
<pre><code class="lang-javascript">autorun(() =&gt; {
    <span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;Tasks left: &quot;</span> + todos.unfinishedTodoCount)
})
</code></pre>
<h3 id="mobx-&#x4F1A;&#x5BF9;&#x4EC0;&#x4E48;&#x4F5C;&#x51FA;&#x54CD;&#x5E94;"><a name="mobx-&#x4F1A;&#x5BF9;&#x4EC0;&#x4E48;&#x4F5C;&#x51FA;&#x54CD;&#x5E94;" class="plugin-anchor" href="#mobx-&#x4F1A;&#x5BF9;&#x4EC0;&#x4E48;&#x4F5C;&#x51FA;&#x54CD;&#x5E94;"><i class="fa fa-link" aria-hidden="true"></i></a>MobX &#x4F1A;&#x5BF9;&#x4EC0;&#x4E48;&#x4F5C;&#x51FA;&#x54CD;&#x5E94;?</h3>
<p>&#x4E3A;&#x4EC0;&#x4E48;&#x6BCF;&#x6B21; <code>unfinishedTodoCount</code> &#x53D8;&#x5316;&#x65F6;&#x90FD;&#x4F1A;&#x6253;&#x5370;&#x4E00;&#x6761;&#x65B0;&#x6D88;&#x606F;&#xFF1F;&#x7B54;&#x6848;&#x5C31;&#x662F;&#x4E0B;&#x9762;&#x8FD9;&#x6761;&#x7ECF;&#x9A8C;&#x6CD5;&#x5219;:</p>
<p><em>MobX &#x4F1A;&#x5BF9;&#x5728;&#x6267;&#x884C;&#x8DDF;&#x8E2A;&#x51FD;&#x6570;&#x671F;&#x95F4;&#x8BFB;&#x53D6;&#x7684;&#x4EFB;&#x4F55;&#x73B0;&#x6709;&#x7684;&#x53EF;&#x89C2;&#x5BDF;&#x5C5E;&#x6027;&#x505A;&#x51FA;&#x53CD;&#x5E94;</em>&#x3002;</p>
<p>&#x60F3;&#x6DF1;&#x5165;&#x4E86;&#x89E3; MobX &#x662F;&#x5982;&#x4F55;&#x77E5;&#x9053;&#x9700;&#x8981;&#x5BF9;&#x54EA;&#x4E2A;&#x53EF;&#x89C2;&#x5BDF;&#x5C5E;&#x6027;&#x8FDB;&#x884C;&#x54CD;&#x5E94;&#xFF0C;&#x8BF7;&#x67E5;&#x9605; <a href="http://cn.mobx.js.org/best/react.html" target="_blank">&#x7406;&#x89E3; MobX &#x5BF9;&#x4EC0;&#x4E48;&#x6709;&#x53CD;&#x5E94;</a>&#x3002;</p>
<h3 id="actions&#x52A8;&#x4F5C;"><a name="actions&#x52A8;&#x4F5C;" class="plugin-anchor" href="#actions&#x52A8;&#x4F5C;"><i class="fa fa-link" aria-hidden="true"></i></a>Actions(&#x52A8;&#x4F5C;)</h3>
<p><i><a style="color: white; background:green;padding:5px;margin:5px;border-radius:2px" href="https://egghead.io/lessons/react-use-mobx-actions-to-change-and-guard-state" target="_blank">Egghead.io &#x7B2C;5&#x8BFE;: actions</a></i></p>
<p>&#x4E0D;&#x540C;&#x4E8E; flux &#x7CFB;&#x7684;&#x4E00;&#x4E9B;&#x6846;&#x67B6;&#xFF0C;MobX &#x5BF9;&#x4E8E;&#x5982;&#x4F55;&#x5904;&#x7406;&#x7528;&#x6237;&#x4E8B;&#x4EF6;&#x662F;&#x5B8C;&#x5168;&#x5F00;&#x660E;&#x7684;&#x3002;</p>
<ul>
<li>&#x53EF;&#x4EE5;&#x7528;&#x7C7B;&#x4F3C; Flux &#x7684;&#x65B9;&#x5F0F;&#x5B8C;&#x6210;</li>
<li>&#x6216;&#x8005;&#x4F7F;&#x7528; RxJS &#x6765;&#x5904;&#x7406;&#x4E8B;&#x4EF6;</li>
<li>&#x6216;&#x8005;&#x7528;&#x6700;&#x76F4;&#x89C2;&#x3001;&#x6700;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5904;&#x7406;&#x4E8B;&#x4EF6;&#xFF0C;&#x6B63;&#x5982;&#x4E0A;&#x9762;&#x6F14;&#x793A;&#x6240;&#x7528;&#x7684; <code>onClick</code></li>
</ul>
<p>&#x6700;&#x540E;&#x5168;&#x90E8;&#x5F52;&#x7EB3;&#x4E3A;: &#x72B6;&#x6001;&#x5E94;&#x8BE5;&#x4EE5;&#x67D0;&#x79CD;&#x65B9;&#x5F0F;&#x6765;&#x66F4;&#x65B0;&#x3002;</p>
<p>&#x5F53;&#x72B6;&#x6001;&#x66F4;&#x65B0;&#x540E;&#xFF0C;<code>MobX</code> &#x4F1A;&#x4EE5;&#x4E00;&#x79CD;&#x9AD8;&#x6548;&#x4E14;&#x65E0;&#x969C;&#x788D;&#x7684;&#x65B9;&#x5F0F;&#x5904;&#x7406;&#x597D;&#x5269;&#x4E0B;&#x7684;&#x4E8B;&#x60C5;&#x3002;&#x50CF;&#x4E0B;&#x9762;&#x5982;&#x6B64;&#x7B80;&#x5355;&#x7684;&#x8BED;&#x53E5;&#xFF0C;&#x5DF2;&#x7ECF;&#x8DB3;&#x591F;&#x7528;&#x6765;&#x81EA;&#x52A8;&#x66F4;&#x65B0;&#x7528;&#x6237;&#x754C;&#x9762;&#x4E86;&#x3002;</p>
<p>&#x4ECE;&#x6280;&#x672F;&#x4E0A;&#x5C42;&#x9762;&#x6765;&#x8BB2;&#xFF0C;&#x5E76;&#x4E0D;&#x9700;&#x8981;&#x89E6;&#x53D1;&#x4E8B;&#x4EF6;&#x3001;&#x8C03;&#x7528;&#x5206;&#x6D3E;&#x7A0B;&#x5E8F;&#x6216;&#x8005;&#x7C7B;&#x4F3C;&#x7684;&#x5DE5;&#x4F5C;&#x3002;&#x5F52;&#x6839;&#x7A76;&#x5E95; React &#x7EC4;&#x4EF6;&#x53EA;&#x662F;&#x72B6;&#x6001;&#x7684;&#x534E;&#x4E3D;&#x5C55;&#x793A;&#xFF0C;&#x800C;&#x72B6;&#x6001;&#x7684;&#x884D;&#x751F;&#x7531; MobX &#x6765;&#x7BA1;&#x7406;&#x3002;</p>
<pre><code class="lang-javascript">store.todos.push(
    <span class="hljs-keyword">new</span> Todo(<span class="hljs-string">&quot;Get Coffee&quot;</span>),
    <span class="hljs-keyword">new</span> Todo(<span class="hljs-string">&quot;Write simpler code&quot;</span>)
);
store.todos[<span class="hljs-number">0</span>].finished = <span class="hljs-literal">true</span>;
</code></pre>
<p>&#x5C3D;&#x7BA1;&#x5982;&#x6B64;&#xFF0C;MobX &#x8FD8;&#x662F;&#x63D0;&#x4F9B;&#x4E86; <a href="http://cn.mobx.js.org/refguide/action.html" target="_blank"><code>actions</code></a> &#x8FD9;&#x4E2A;&#x53EF;&#x9009;&#x7684;&#x5185;&#x7F6E;&#x6982;&#x5FF5;&#x3002;
&#x5982;&#x679C;&#x4F60;&#x73B0;&#x5728;&#x5C31;&#x60F3;&#x8981;&#x4E86;&#x89E3;&#x5982;&#x4F55;&#x7F16;&#x5199; actions&#xFF0C;&#x8BF7;&#x9605;&#x8BFB; Actions &#x7AE0;&#x8282;&#x3002;&#x5F88;&#x7B80;&#x5355;&#xFF01;
&#x4F7F;&#x7528; <code>actions</code> &#x662F;&#x6709;&#x4F18;&#x52BF;&#x7684;: &#x5B83;&#x4EEC;&#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x4F60;&#x628A;&#x4EE3;&#x7801;&#x7EC4;&#x7EC7;&#x7684;&#x66F4;&#x597D;&#xFF0C;&#x8FD8;&#x80FD;&#x5728;&#x72B6;&#x6001;&#x4F55;&#x65F6;&#x4F55;&#x5730;&#x5E94;&#x8BE5;&#x88AB;&#x4FEE;&#x6539;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#x4E0A;&#x5E2E;&#x52A9;&#x4F60;&#x505A;&#x51FA;&#x660E;&#x667A;&#x7684;&#x51B3;&#x5B9A;&#x3002;</p>
<h2 id="mobx-&#x7B80;&#x5355;&#x4E14;&#x53EF;&#x6269;&#x5C55;"><a name="mobx-&#x7B80;&#x5355;&#x4E14;&#x53EF;&#x6269;&#x5C55;" class="plugin-anchor" href="#mobx-&#x7B80;&#x5355;&#x4E14;&#x53EF;&#x6269;&#x5C55;"><i class="fa fa-link" aria-hidden="true"></i></a>MobX: &#x7B80;&#x5355;&#x4E14;&#x53EF;&#x6269;&#x5C55;</h2>
<p>MobX &#x662F;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x5E93;&#x4E2D;&#x4FB5;&#x5165;&#x6027;&#x6700;&#x5C0F;&#x7684;&#x4E4B;&#x4E00;&#x3002;&#x8FD9;&#x4F7F;&#x5F97; <code>MobX</code>&#x7684;&#x65B9;&#x6CD5;&#x4E0D;&#x4F46;&#x7B80;&#x5355;&#xFF0C;&#x800C;&#x4E14;&#x53EF;&#x6269;&#x5C55;&#x6027;&#x4E5F;&#x975E;&#x5E38;&#x597D;:</p>
<h3 id="&#x4F7F;&#x7528;&#x7C7B;&#x548C;&#x771F;&#x6B63;&#x7684;&#x5F15;&#x7528;"><a name="&#x4F7F;&#x7528;&#x7C7B;&#x548C;&#x771F;&#x6B63;&#x7684;&#x5F15;&#x7528;" class="plugin-anchor" href="#&#x4F7F;&#x7528;&#x7C7B;&#x548C;&#x771F;&#x6B63;&#x7684;&#x5F15;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528;&#x7C7B;&#x548C;&#x771F;&#x6B63;&#x7684;&#x5F15;&#x7528;</h3>
<p>&#x4F7F;&#x7528; MobX &#x4E0D;&#x9700;&#x8981;&#x4F7F;&#x6570;&#x636E;&#x6807;&#x51C6;&#x5316;&#x3002;&#x8FD9;&#x4F7F;&#x5F97;&#x5E93;&#x5341;&#x5206;&#x9002;&#x5408;&#x90A3;&#x4E9B;&#x5F02;&#x5E38;&#x590D;&#x6742;&#x7684;&#x9886;&#x57DF;&#x6A21;&#x578B;(&#x4EE5; Mendix &#x4E3A;&#x4F8B;: &#x4E00;&#x4E2A;&#x5E94;&#x7528;&#x4E2D;&#x6709;&#x5927;&#x7EA6;500&#x4E2A;&#x9886;&#x57DF;&#x7C7B;)&#x3002;</p>
<h3 id="&#x4FDD;&#x8BC1;&#x53C2;&#x7167;&#x5B8C;&#x6574;&#x6027;"><a name="&#x4FDD;&#x8BC1;&#x53C2;&#x7167;&#x5B8C;&#x6574;&#x6027;" class="plugin-anchor" href="#&#x4FDD;&#x8BC1;&#x53C2;&#x7167;&#x5B8C;&#x6574;&#x6027;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4FDD;&#x8BC1;&#x53C2;&#x7167;&#x5B8C;&#x6574;&#x6027;</h3>
<p>&#x56E0;&#x4E3A;&#x6570;&#x636E;&#x4E0D;&#x9700;&#x8981;&#x6807;&#x51C6;&#x5316;&#xFF0C;&#x6240;&#x4EE5; MobX &#x4F1A;&#x81EA;&#x52A8;&#x8DDF;&#x8E2A;&#x72B6;&#x6001;&#x548C;&#x884D;&#x751F;&#x4E4B;&#x95F4;&#x7684;&#x5173;&#x7CFB;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x514D;&#x8D39;&#x83B7;&#x5F97;&#x53C2;&#x7167;&#x5B8C;&#x6574;&#x6027;&#x3002;&#x6E32;&#x67D3;&#x901A;&#x8FC7;&#x4E09;&#x7EA7;&#x95F4;&#x63A5;&#x5BFB;&#x5740;&#x8BBF;&#x95EE;&#x7684;&#x6570;&#x636E;&#xFF1F;</p>
<p>&#x6CA1;&#x6709;&#x95EE;&#x9898;&#xFF0C;MobX &#x4F1A;&#x8DDF;&#x8E2A;&#x5B83;&#x4EEC;&#xFF0C;&#x4E00;&#x65E6;&#x5176;&#x4E2D;&#x4E00;&#x4E2A;&#x5F15;&#x7528;&#x53D1;&#x751F;&#x4E86;&#x53D8;&#x5316;&#xFF0C;&#x5C31;&#x4F1A;&#x91CD;&#x65B0;&#x6E32;&#x67D3;&#x3002;&#x4F5C;&#x4E3A;&#x56DE;&#x62A5;&#xFF0C;&#x9648;&#x5E74;&#x7684;&#x8001;bug&#x5DF2;&#x4E0D;&#x590D;&#x5B58;&#x5728;&#x3002;&#x4F5C;&#x4E3A;&#x4E00;&#x4E2A;&#x7A0B;&#x5E8F;&#x5458;&#xFF0C;&#x4F60;&#x53EF;&#x80FD;&#x8BB0;&#x4E0D;&#x4F4F;&#x4FEE;&#x6539;&#x7684;&#x4E00;&#x4E9B;&#x6570;&#x636E;&#x53EF;&#x80FD;&#x4F1A;&#x5F71;&#x54CD;&#x5230;&#x7684;&#x67D0;&#x4E2A;&#x89D2;&#x843D;&#x91CC;&#x770B;&#x8D77;&#x6765;&#x6BEB;&#x4E0D;&#x76F8;&#x5173;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x4F46; MobX &#x4E0D;&#x4F1A;&#x3002;</p>
<h3 id="&#x66F4;&#x7B80;&#x5355;&#x7684;-actions-&#x66F4;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;"><a name="&#x66F4;&#x7B80;&#x5355;&#x7684;-actions-&#x66F4;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;" class="plugin-anchor" href="#&#x66F4;&#x7B80;&#x5355;&#x7684;-actions-&#x66F4;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x66F4;&#x7B80;&#x5355;&#x7684; actions &#x66F4;&#x4FBF;&#x4E8E;&#x7EF4;&#x62A4;</h3>
<p>&#x6B63;&#x5982;&#x4E0A;&#x9762;&#x6240;&#x6F14;&#x793A;&#x7684;&#xFF0C;&#x4F7F;&#x7528; MobX &#x4FEE;&#x6539;&#x72B6;&#x6001;&#x662F;&#x975E;&#x5E38;&#x7B80;&#x5355;&#x7684;&#x3002;&#x4F60;&#x53EA;&#x9700;&#x7B80;&#x5355;&#x7684;&#x5199;&#x51FA;&#x4F60;&#x7684;&#x76EE;&#x7684;&#x3002;MobX &#x4F1A;&#x66FF;&#x4F60;&#x5904;&#x7406;&#x597D;&#x5269;&#x4E0B;&#x7684;&#x4E8B;&#x60C5;&#x3002;</p>
<h3 id="&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x53EF;&#x89C2;&#x6D4B;&#x6027;&#x662F;&#x9AD8;&#x6548;&#x7684;"><a name="&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x53EF;&#x89C2;&#x6D4B;&#x6027;&#x662F;&#x9AD8;&#x6548;&#x7684;" class="plugin-anchor" href="#&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x53EF;&#x89C2;&#x6D4B;&#x6027;&#x662F;&#x9AD8;&#x6548;&#x7684;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x53EF;&#x89C2;&#x6D4B;&#x6027;&#x662F;&#x9AD8;&#x6548;&#x7684;</h3>
<p>MobX &#x6784;&#x5EFA;&#x5E94;&#x7528;&#x4E2D;&#x6240;&#x6709;&#x884D;&#x751F;&#x7684;&#x56FE;&#x5F62;&#xFF0C;&#x4EE5;&#x627E;&#x5230;&#x4FDD;&#x6301;&#x6700;&#x65B0;&#x72B6;&#x6001;&#x6240;&#x9700;&#x7684;&#x91CD;&#x65B0;&#x8BA1;&#x7B97;&#x7684;&#x6700;&#x5C11;&#x6B21;&#x6570;&#x3002;&#x201C;&#x884D;&#x751F;&#x4E00;&#x5207;&#x201D;&#x6216;&#x8BB8;&#x542C;&#x4E0A;&#x53BB;&#x5F00;&#x9500;&#x5F88;&#x6602;&#x8D35;&#xFF0C;&#x4F46; MobX &#x6784;&#x5EFA;&#x865A;&#x62DF;&#x884D;&#x751F;&#x56FE;&#x4EE5;&#x4FDD;&#x6301;&#x884D;&#x751F;&#x4E0E;&#x72B6;&#x6001;&#x540C;&#x6B65;&#x6240;&#x9700;&#x7684;&#x91CD;&#x8BA1;&#x7B97;&#x7684;&#x6570;&#x91CF;&#x6700;&#x5C0F;&#x5316;&#x3002;</p>
<p>&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;&#x5728; Mendix &#x6D4B;&#x8BD5; MobX &#x65F6;&#x6211;&#x4EEC;&#x53D1;&#x73B0;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x5E93;&#x8DDF;&#x8E2A;&#x4EE3;&#x7801;&#x4E2D;&#x7684;&#x5173;&#x7CFB;&#x901A;&#x5E38;&#x4F1A;&#x66F4;&#x6709;&#x6548;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x901A;&#x8FC7;&#x4F7F;&#x7528;&#x624B;&#x5199;&#x4E8B;&#x4EF6;&#x6216;&#x57FA;&#x4E8E;&#x5BB9;&#x5668;&#x7EC4;&#x4EF6;&#x7684;&#x201C;&#x667A;&#x80FD;&#x201D;&#x9009;&#x62E9;&#x5668;&#x6765;&#x63A8;&#x9001;&#x66F4;&#x6539;&#x3002;</p>
<p>&#x7B80;&#x5355;&#x6765;&#x8BF4;&#xFF0C;&#x662F;&#x56E0;&#x4E3A; MobX &#x4F1A;&#x5728;&#x6570;&#x636E;&#x4E0A;&#x5EFA;&#x7ACB;&#x66F4;&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x201C;&#x76D1;&#x542C;&#x5668;&#x201D;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x901A;&#x8FC7;&#x7A0B;&#x5E8F;&#x6765;&#x63A7;&#x5236;&#x3002;</p>
<p>&#x5176;&#x6B21;, MobX &#x770B;&#x5230;&#x884D;&#x751F;&#x4E4B;&#x95F4;&#x7684;&#x56E0;&#x679C;&#x5173;&#x7CFB;&#xFF0C;&#x56E0;&#x6B64;&#x5B83;&#x53EF;&#x4EE5;&#x4E3A;&#x884D;&#x751F;&#x6392;&#x5E8F;&#xFF0C;&#x4F7F;&#x5F97;&#x884D;&#x751F;&#x4E0D;&#x4F1A;&#x8FD0;&#x884C;&#x591A;&#x6B21;&#x6216;&#x5F15;&#x5165;&#x7F3A;&#x9677;&#x3002;</p>
<p>&#x60F3;&#x4E86;&#x89E3;&#x8FD9;&#x662F;&#x5982;&#x4F55;&#x5DE5;&#x4F5C;&#x7684;&#xFF1F; &#x8BF7;&#x53C2;&#x89C1; <a href="https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254" target="_blank">&#x6DF1;&#x5165;&#x5256;&#x6790; MobX</a>&#x3002;</p>
<h3 id="&#x6613;&#x64CD;&#x4F5C;&#x6027;"><a name="&#x6613;&#x64CD;&#x4F5C;&#x6027;" class="plugin-anchor" href="#&#x6613;&#x64CD;&#x4F5C;&#x6027;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6613;&#x64CD;&#x4F5C;&#x6027;</h3>
<p>MobX &#x4F7F;&#x7528;&#x539F;&#x751F; javascript &#x3002;&#x7531;&#x4E8E;&#x5B83;&#x7684;&#x4FB5;&#x5165;&#x6027;&#x4E0D;&#x5F3A;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x548C;&#x7EDD;&#x5927;&#x90E8;&#x5206; javascript &#x5E93;&#x5171;&#x540C;&#x4F7F;&#x7528;&#xFF0C;&#x800C;&#x4E0D;&#x9700;&#x8981;&#x7279;&#x5B9A;&#x7684; MobX &#x98CE;&#x683C;&#x5E93;&#x3002;</p>
<p>&#x6240;&#x4EE5;&#x4F60;&#x53EF;&#x4EE5;&#x7EE7;&#x7EED;&#x4F7F;&#x7528;&#x4F60;&#x7684;&#x8DEF;&#x7531;&#xFF0C;&#x6570;&#x636E;&#x83B7;&#x53D6;&#x548C;&#x5DE5;&#x5177;&#x5E93;&#xFF0C;&#x6BD4;&#x5982;<code>react-router</code>&#x3001; <code>director</code>&#x3001; <code>superagent</code>&#x3001; <code>lodash</code>&#xFF0C;&#x7B49;&#x7B49;&#x3002;</p>
<p>&#x51FA;&#x4E8E;&#x540C;&#x6837;&#x7684;&#x539F;&#x56E0;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x548C;&#x5BA2;&#x6237;&#x7AEF;&#x4F7F;&#x7528;&#x5B83;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5728; react-native &#x8FD9;&#x6837;&#x7684;&#x540C;&#x6784;&#x5E94;&#x7528;&#x4E2D;&#x4F7F;&#x7528;&#x3002;</p>
<p>&#x7ED3;&#x8BBA;&#x5C31;&#x662F;: &#x76F8;&#x6BD4;&#x5176;&#x5B83;&#x72B6;&#x6001;&#x7BA1;&#x7406;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF0C;&#x5F53;&#x4F7F;&#x7528; MobX &#x65F6;&#x901A;&#x5E38;&#x53EA;&#x9700;&#x5B66;&#x4E60;&#x66F4;&#x5C11;&#x7684;&#x65B0;&#x6982;&#x5FF5;&#x3002;</p>
<h2 id="&#x8D5E;&#x8A89;"><a name="&#x8D5E;&#x8A89;" class="plugin-anchor" href="#&#x8D5E;&#x8A89;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8D5E;&#x8A89;</h2>
<p>MobX &#x7684;&#x7075;&#x611F;&#x6765;&#x81EA;excel&#x8868;&#x683C;&#x4E2D;&#x7684;&#x53CD;&#x5E94;&#x5F0F;&#x7F16;&#x7A0B;&#x539F;&#x7406;&#x3002;&#x540C;&#x6837;&#x4E5F;&#x53D7;&#x5230;&#x50CF; MeteorJS&#x3001;knockout&#x548C;Vue.js&#x8FD9;&#x6837;&#x7684; MVVM &#x6846;&#x67B6;&#x7684;&#x542F;&#x53D1;&#x3002;&#x4F46;&#x662F; MobX &#x628A;&#x900F;&#x660E;&#x7684;&#x51FD;&#x6570;&#x54CD;&#x5E94;&#x5F0F;&#x7F16;&#x7A0B;(Transparent Functional Reactive Programming)&#x63D0;&#x5347;&#x5230;&#x4E86;&#x4E00;&#x4E2A;&#x66F4;&#x597D;&#x7684;&#x6C34;&#x5E73;&#x5E76;&#x4E14;&#x63D0;&#x4F9B;&#x4E86;&#x72EC;&#x7ACB;&#x7684;&#x5B9E;&#x73B0;&#x3002;&#x5B83;&#x4EE5;&#x4E00;&#x79CD;&#x65E0;&#x969C;&#x788D;&#x3001;&#x540C;&#x6B65;&#x3001;&#x53EF;&#x9884;&#x89C1;&#x548C;&#x9AD8;&#x6548;&#x7684;&#x65B9;&#x5F0F;&#x5B9E;&#x73B0;&#x4E86; TFRP&#x3002;</p>
<p>&#x66F4;&#x591A;&#x7684;&#x8D5E;&#x8A89;&#x7ED9;<a href="https://github.com/mendix" target="_blank">Mendix</a> &#xFF0C;&#x5B83;&#x4E3A;&#x7EF4;&#x62A4; MobX &#x7ED9;&#x4E88;&#x4E86;&#x7075;&#x6D3B;&#x6027;&#x548C;&#x652F;&#x6301;&#xFF0C;&#x5E76;&#x63D0;&#x4F9B;&#x673A;&#x4F1A;&#x5728;&#x771F;&#x5B9E;&#x3001;&#x590D;&#x6742;&#x3001;&#x6027;&#x80FD;&#x5173;&#x952E;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4E2D;&#x8BC1;&#x660E; MobX &#x7684;&#x54F2;&#x5B66;&#x3002;</p>
<p>&#x6700;&#x7EC8;&#x7684;&#x8D5E;&#x8A89;&#x5C5E;&#x4E8E;&#x6240;&#x6709;&#x7684;&#x9009;&#x62E9;&#x76F8;&#x4FE1;&#x3001;&#x4E0D;&#x65AD;&#x5C1D;&#x8BD5;&#x3001;&#x4E0D;&#x65AD;&#x9A8C;&#x8BC1;&#x3001;&#x4E43;&#x81F3;<a href="https://github.com/mobxjs/mobx/blob/master/sponsors.md" target="_blank">&#x8D5E;&#x52A9;</a> MobX &#x7684;&#x4EBA;&#x4EEC;&#x3002;</p>
<h2 id="&#x66F4;&#x591A;&#x8D44;&#x6E90;&#x53CA;&#x6587;&#x6863;"><a name="&#x66F4;&#x591A;&#x8D44;&#x6E90;&#x53CA;&#x6587;&#x6863;" class="plugin-anchor" href="#&#x66F4;&#x591A;&#x8D44;&#x6E90;&#x53CA;&#x6587;&#x6863;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x66F4;&#x591A;&#x8D44;&#x6E90;&#x53CA;&#x6587;&#x6863;</h2>
<ul>
<li><img src="images/book.jpg" height="80px"> &#x7531; Pavan Podila &#x548C; Michel Weststrate &#x64B0;&#x5199;&#x7684; <a href="https://books.google.nl/books?id=ALFmDwAAQBAJ&amp;pg=PP1&amp;lpg=PP1&amp;dq=michel+weststrate+mobx+quick+start+guide:+supercharge+the+client+state+in+your+react+apps+with+mobx&amp;source=bl&amp;ots=D460fxti0F&amp;sig=ivDGTxsPNwlOjLHrpKF1nweZFl8&amp;hl=nl&amp;sa=X&amp;ved=2ahUKEwiwl8XO--ncAhWPmbQKHWOYBqIQ6AEwAnoECAkQAQ#v=onepage&amp;q=michel%20weststrate%20mobx%20quick%20start%20guide%3A%20supercharge%20the%20client%20state%20in%20your%20react%20apps%20with%20mobx&amp;f=false" target="_blank">MobX &#x4E66;&#x7C4D;</a> (&#x975E;&#x5E38;&#x4E0D;&#x559C;&#x6B22;xx&#x6DF1;&#x5165;&#x7684;&#x4E66;&#x540D;&#xFF01;)</li>
<li><a href="http://mobxjs.github.io/mobx/faq/blogs.html" target="_blank">MobX &#x4E3B;&#x9875;</a></li>
<li><a href="http://mobxjs.github.io/mobx/refguide/api.html" target="_blank">API&#x6982;&#x89C8;</a></li>
<li><a href="http://mobxjs.github.io/mobx/faq/blogs.html" target="_blank">&#x6559;&#x7A0B;&#x3001;&#x535A;&#x5BA2;&#x548C;&#x89C6;&#x9891;</a></li>
<li><a href="http://mobxjs.github.io/mobx/faq/boilerplates.html" target="_blank">&#x6837;&#x677F;&#x6587;&#x4EF6;</a></li>
<li><a href="http://mobxjs.github.io/mobx/faq/related.html" target="_blank">&#x76F8;&#x5173;&#x9879;&#x76EE;</a></li>
</ul>
<h2 id="&#x5176;&#x5B83;&#x4EBA;&#x90FD;&#x5728;&#x8BF4;&#x4E9B;&#x4EC0;&#x4E48;"><a name="&#x5176;&#x5B83;&#x4EBA;&#x90FD;&#x5728;&#x8BF4;&#x4E9B;&#x4EC0;&#x4E48;" class="plugin-anchor" href="#&#x5176;&#x5B83;&#x4EBA;&#x90FD;&#x5728;&#x8BF4;&#x4E9B;&#x4EC0;&#x4E48;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5176;&#x5B83;&#x4EBA;&#x90FD;&#x5728;&#x8BF4;&#x4E9B;&#x4EC0;&#x4E48;...</h2>
<blockquote>
<p>Guise, #mobx isn&apos;t pubsub, or your grandpa&apos;s observer pattern. Nay, it is a carefully orchestrated observable dimensional portal fueled by the power cosmic. It doesn&apos;t do change detection, it&apos;s actually a level 20 psionic with soul knife, slashing your viewmodel into submission. (&#x8BD1;&#x8005;&#x6CE8;: &#x8FD9;&#x4E2A;&#x8D5E;&#x7F8E;&#x4E4B;&#x8BCD;&#x5B8C;&#x5168;&#x6CA1;&#x80FD;&#x9886;&#x4F1A;&#xFF0C;&#x8C01;&#x80FD;&#x770B;&#x61C2;&#x53EF;&#x4EE5;&#x5E2E;&#x5FD9;&#x7FFB;&#x8BD1;&#x4E0B; ^.^)</p>
<p>&#x5728;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;&#x9879;&#x76EE;&#x4F7F;&#x7528; mobx &#x51E0;&#x5468;&#x540E;&#xFF0C;&#x611F;&#x89C9;&#x628A;&#x5B83;&#x5F15;&#x5165;&#x5230;&#x56E2;&#x961F;&#x4E2D;&#x771F;&#x662F;&#x592A;&#x68D2;&#x4E86;&#x3002;&#x5DE5;&#x4F5C;&#x65F6;&#x95F4;&#x51CF;&#x534A;&#xFF0C;&#x5FEB;&#x4E50;&#x52A0;&#x500D;&#x3002;</p>
<p>&#x4F7F;&#x7528; mobx &#x5DE5;&#x4F5C;&#x5BF9;&#x4E8E;&#x6765;&#x6211;&#x6765;&#x8BF4;&#xFF0C;&#x57FA;&#x672C;&#x5C31;&#x662F;&#x4E0D;&#x65AD;&#x5730;&#x8BC1;&#x660E;&#x201C;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x592A;&#x7B80;&#x5355;&#xFF0C;&#x80AF;&#x5B9A;&#x6CA1;&#x6709;&#x529E;&#x6CD5;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x201D;&#x7684;&#x60F3;&#x6CD5;&#x662F;&#x9519;&#x8BEF;&#x7684;&#x8FC7;&#x7A0B;&#x3002;</p>
<p>&#x5C1D;&#x8BD5;&#x4F7F;&#x7528; ES6 &#x7248;&#x672C;&#x7684; react-mobx &#x540E;&#xFF0C;&#x4F60;&#x4F1A;&#x7ED9;&#x5B83;&#x4E00;&#x4E2A;&#x70ED;&#x60C5;&#x7684;&#x62E5;&#x62B1;&#x5E76;&#x6DF1;&#x6DF1;&#x5730;&#x7231;&#x4E0A;&#x5B83;&#x3002;</p>
<p>&#x6211;&#x5DF2;&#x7ECF;&#x5728;&#x5927;&#x578B;&#x5E94;&#x7528;&#x4E2D;&#x4F7F;&#x7528;&#x4E86; MobX&#xFF0C;&#x548C;&#x4E4B;&#x524D;&#x4F7F;&#x7528;&#x7684; Redux &#x76F8;&#x6BD4;&#xFF0C;&#x5B83;&#x66F4;&#x5BB9;&#x6613;&#x9605;&#x8BFB;&#x548C;&#x63A8;&#x5BFC;&#x3002;</p>
<p>mobx &#x6B63;&#x662F;&#x6211;&#x4E00;&#x76F4;&#x60F3;&#x8981;&#x7684;&#x65B9;&#x5F0F;&#xFF01;&#x5B83;&#x771F;&#x7684;&#x8D85;&#x7EA7;&#x7B80;&#x5355;&#x3001;&#x8D85;&#x7EA7;&#x5FEB;&#xFF01;&#x68D2;&#x6781;&#x4E86;&#xFF01;&#x5343;&#x4E07;&#x4E0D;&#x8981;&#x9519;&#x8FC7;&#xFF01;</p>
</blockquote>
<h2 id="&#x8D21;&#x732E;"><a name="&#x8D21;&#x732E;" class="plugin-anchor" href="#&#x8D21;&#x732E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8D21;&#x732E;</h2>
<ul>
<li>&#x5C0F;&#x7684; pull requests &#x53EF;&#x4EE5;&#x968F;&#x610F;&#x53D1;&#x8D77;&#x3002;&#x4F46;&#x662F;&#x65B0;&#x529F;&#x80FD;&#x6216;&#x8005;&#x91CD;&#x5927;&#x53D8;&#x66F4;&#x8BF7;&#x5148;&#x5728; Github Issues &#x4E2D;&#x8BA8;&#x8BBA;&#x3002;</li>
<li>&#x4F7F;&#x7528; <code>npm test</code> &#x8FD0;&#x884C;&#x57FA;&#x672C;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#xFF0C;<code>npm run coverage</code> &#x7528;&#x6765;&#x6D4B;&#x8BD5;&#x5957;&#x4EF6;&#x7684;&#x8986;&#x76D6;&#x7387;&#xFF0C;<code>npm run test:performance</code> &#x7528;&#x6765;&#x6D4B;&#x8BD5;&#x6027;&#x80FD;&#x3002;</li>
</ul>
<h2 id="mobx-4-vs-mobx-5"><a name="mobx-4-vs-mobx-5" class="plugin-anchor" href="#mobx-4-vs-mobx-5"><i class="fa fa-link" aria-hidden="true"></i></a>MobX 4 vs MobX 5</h2>
<p>MobX 4 &#x548C; MobX 5 &#x7684;&#x4E0D;&#x540C;&#x4E4B;&#x5904;&#x5728;&#x4E8E;&#x540E;&#x8005;&#x4F7F;&#x7528;&#x4E86; ES6 &#x7684; proxy &#x6765;&#x8FFD;&#x8E2A;&#x5C5E;&#x6027;&#x3002;&#x56E0;&#x6B64;&#xFF0C;MobX 5 &#x53EA;&#x80FD;&#x8FD0;&#x884C;&#x5728;&#x652F;&#x6301; proxy &#x7684;&#x6D4F;&#x89C8;&#x5668;&#x4E0A;&#xFF0C;&#x800C; MobX 4&#x53EF;&#x4EE5;&#x8FD0;&#x884C;&#x5728;&#x4EFB;&#x4F55;&#x652F;&#x6301; ES5 &#x7684;&#x73AF;&#x5883;&#x4E2D;&#x3002;</p>
<p>MobX 4 &#x7684;&#x91CD;&#x8981;&#x5C40;&#x9650;&#x6027;:</p>
<ul>
<li>Observable &#x6570;&#x7EC4;&#x5E76;&#x975E;&#x771F;&#x6B63;&#x7684;&#x6570;&#x7EC4;&#xFF0C;&#x6240;&#x4EE5;&#x5B83;&#x4EEC;&#x65E0;&#x6CD5;&#x901A;&#x8FC7; <code>Array.isArray()</code> &#x7684;&#x68C0;&#x67E5;&#x3002;&#x6700;&#x5E38;&#x89C1;&#x7684;&#x5904;&#x7406;&#x65B9;&#x6CD5;&#x662F;&#x5728;&#x4F20;&#x9012;&#x7ED9;&#x7B2C;&#x4E09;&#x65B9;&#x5E93;&#x4E4B;&#x524D;&#xFF0C;&#x4F60;&#x7ECF;&#x5E38;&#x9700;&#x8981;&#x5148;&#x5BF9;&#x5176;&#x8FDB;&#x884C; <code>.slice()</code> &#x64CD;&#x4F5C;&#xFF0C;&#x4ECE;&#x800C;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x6D45;&#x62F7;&#x8D1D;&#x7684;&#x771F;&#x6B63;&#x6570;&#x7EC4;&#x3002;</li>
<li>&#x5411;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684; observable &#x5BF9;&#x8C61;&#x4E2D;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;&#x4E0D;&#x4F1A;&#x88AB;&#x81EA;&#x52A8;&#x6355;&#x83B7;&#x3002;&#x8981;&#x4E48;&#x4F7F;&#x7528; observable &#x6620;&#x5C04;&#x6765;&#x66FF;&#x4EE3;&#xFF0C;&#x8981;&#x4E48;&#x4F7F;&#x7528;<a href="refguide/object-api.html">&#x5DE5;&#x5177;&#x51FD;&#x6570;</a> &#x4E2D;&#x65B9;&#x6CD5;&#x6765;&#x5BF9;&#x60F3;&#x8981;&#x52A8;&#x6001;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;&#x7684;&#x5BF9;&#x8C61;&#x8FDB;&#x884C;&#x8BFB;/&#x5199;/&#x8FED;&#x4EE3;&#x3002;</li>
</ul>
<p>&#x60F3;&#x8981;&#x4E86;&#x89E3;&#x66F4;&#x591A;&#x7EC6;&#x8282;&#xFF0C;&#x8BF7;&#x53C2;&#x89C1;<a href="best/pitfalls.html">&#x5E38;&#x89C1;&#x95EE;&#x9898;</a> &#x3002;</p>
<h2 id="flow-&#x652F;&#x6301;"><a name="flow-&#x652F;&#x6301;" class="plugin-anchor" href="#flow-&#x652F;&#x6301;"><i class="fa fa-link" aria-hidden="true"></i></a>Flow &#x652F;&#x6301;</h2>
<p>MobX &#x81EA;&#x5E26; <a href="https://github.com/mobxjs/mobx/blob/master/flow-typed/mobx.js" target="_blank">Flow typings</a>&#x3002;&#x5BFC;&#x5165; mobx &#x6A21;&#x5757;&#x65F6; Flow &#x4F1A;&#x81EA;&#x52A8;&#x5305;&#x542B;&#x5BF9;&#x5E94;&#x7684; typings &#x3002;&#x5C3D;&#x7BA1;&#x4F60;&#x5B8C;&#x5168;<strong>&#x4E0D;</strong>&#x9700;&#x8981;&#x624B;&#x52A8;&#x5BFC;&#x5165;&#x7C7B;&#x578B;&#xFF0C;&#x4F46;&#x4F60;&#x4F9D;&#x65E7;&#x53EF;&#x4EE5;&#x8FD9;&#x6837;&#x505A;: <code>import type { ... } from &apos;mobx&apos;</code> &#x3002;</p>
<p>&#x8981;&#x60F3;&#x4F7F;&#x7528; MobX &#x81EA;&#x5E26;&#x7684; <a href="https://github.com/mobxjs/mobx/blob/master/flow-typed/mobx.js" target="_blank">flow typings</a>&#xFF0C;&#x9700;&#x8981;:</p>
<ul>
<li>&#x5728; <code>.flowconfig</code> &#x4E2D;<strong>&#x4E0D;&#x80FD;</strong>&#x5FFD;&#x7565; <code>node_modules</code> &#x3002;</li>
<li>&#x5728; <code>.flowconfig</code> &#x4E2D;&#x4E0D;&#x80FD;&#x5728; <code>[libs]</code> &#x90E8;&#x5206;&#x4E2D;&#x4E0D;&#x80FD;&#x663E;&#x5F0F;&#x5730;&#x5BFC;&#x5165;&#x3002;</li>
<li><strong>&#x4E0D;</strong>&#x9700;&#x8981;&#x5B89;&#x88C5;&#x5B9A;&#x4E49;&#x7C7B;&#x578B;&#x5E93; <a href="https://github.com/flowtype/flow-typed" target="_blank">flow-typed</a> &#x3002;</li>
</ul>
<h2 id="mobx-&#x4EE5;&#x524D;&#x53EB;&#x505A;-mobservable"><a name="mobx-&#x4EE5;&#x524D;&#x53EB;&#x505A;-mobservable" class="plugin-anchor" href="#mobx-&#x4EE5;&#x524D;&#x53EB;&#x505A;-mobservable"><i class="fa fa-link" aria-hidden="true"></i></a>MobX &#x4EE5;&#x524D;&#x53EB;&#x505A; Mobservable</h2>
<p>&#x60F3;&#x4E86;&#x89E3; <code>mobservable</code> &#x66F4;&#x540D;&#x4E3A; <code>mobx</code> &#x7684;&#x6240;&#x6709;&#x7EC6;&#x8282;&#xFF0C;&#x8BF7;&#x53C2;&#x89C1;<a href="https://github.com/mobxjs/mobx/blob/master/CHANGELOG.md#200" target="_blank">&#x53D8;&#x66F4;&#x65E5;&#x5FD7;</a>&#x3002;</p>
<h2 id="&#x6350;&#x8D60;"><a name="&#x6350;&#x8D60;" class="plugin-anchor" href="#&#x6350;&#x8D60;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6350;&#x8D60;</h2>
<p>MobX &#x662F;&#x4F7F;&#x60A8;&#x7684;&#x9879;&#x76EE;&#x6210;&#x529F;&#x7684;&#x5173;&#x952E;&#x5417;&#xFF1F;
&#x52A0;&#x5165;&#x6211;&#x4EEC;&#x7684; <a href="https://opencollective.com/mobx#" target="_blank">open collective</a> &#x6216;&#x4F7F;&#x7528;<a href="https://mobxjs.github.io/mobx/donate.html" target="_blank">&#x6350;&#x8D60;&#x6309;&#x94AE;</a>!</p>
<h3 id="&#x8D44;&#x52A9;&#x8005;"><a name="&#x8D44;&#x52A9;&#x8005;" class="plugin-anchor" href="#&#x8D44;&#x52A9;&#x8005;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8D44;&#x52A9;&#x8005;</h3>
<p>&#x6309;&#x6708;&#x8D44;&#x52A9;&#x652F;&#x6301;&#x6211;&#x4EEC;&#xFF0C;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x7EE7;&#x7EED;&#x8FDB;&#x884C;&#x6D3B;&#x52A8;&#x3002;[<a href="https://opencollective.com/mobx#backer" target="_blank">&#x6210;&#x4E3A;&#x8D44;&#x52A9;&#x8005;</a>]</p>
<p><a href="https://opencollective.com/mobx/backer/2/website" target="_blank"><img src="https://opencollective.com/mobx/backer/2/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/3/website" target="_blank"><img src="https://opencollective.com/mobx/backer/3/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/4/website" target="_blank"><img src="https://opencollective.com/mobx/backer/4/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/5/website" target="_blank"><img src="https://opencollective.com/mobx/backer/5/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/6/website" target="_blank"><img src="https://opencollective.com/mobx/backer/6/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/7/website" target="_blank"><img src="https://opencollective.com/mobx/backer/7/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/8/website" target="_blank"><img src="https://opencollective.com/mobx/backer/8/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/9/website" target="_blank"><img src="https://opencollective.com/mobx/backer/9/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/10/website" target="_blank"><img src="https://opencollective.com/mobx/backer/10/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/11/website" target="_blank"><img src="https://opencollective.com/mobx/backer/11/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/12/website" target="_blank"><img src="https://opencollective.com/mobx/backer/12/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/13/website" target="_blank"><img src="https://opencollective.com/mobx/backer/13/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/14/website" target="_blank"><img src="https://opencollective.com/mobx/backer/14/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/15/website" target="_blank"><img src="https://opencollective.com/mobx/backer/15/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/16/website" target="_blank"><img src="https://opencollective.com/mobx/backer/16/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/17/website" target="_blank"><img src="https://opencollective.com/mobx/backer/17/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/18/website" target="_blank"><img src="https://opencollective.com/mobx/backer/18/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/19/website" target="_blank"><img src="https://opencollective.com/mobx/backer/19/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/20/website" target="_blank"><img src="https://opencollective.com/mobx/backer/20/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/21/website" target="_blank"><img src="https://opencollective.com/mobx/backer/21/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/22/website" target="_blank"><img src="https://opencollective.com/mobx/backer/22/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/23/website" target="_blank"><img src="https://opencollective.com/mobx/backer/23/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/24/website" target="_blank"><img src="https://opencollective.com/mobx/backer/24/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/25/website" target="_blank"><img src="https://opencollective.com/mobx/backer/25/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/26/website" target="_blank"><img src="https://opencollective.com/mobx/backer/26/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/27/website" target="_blank"><img src="https://opencollective.com/mobx/backer/27/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/28/website" target="_blank"><img src="https://opencollective.com/mobx/backer/28/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/29/website" target="_blank"><img src="https://opencollective.com/mobx/backer/29/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/30/website" target="_blank"><img src="https://opencollective.com/mobx/backer/30/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/31/website" target="_blank"><img src="https://opencollective.com/mobx/backer/31/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/32/website" target="_blank"><img src="https://opencollective.com/mobx/backer/32/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/33/website" target="_blank"><img src="https://opencollective.com/mobx/backer/33/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/34/website" target="_blank"><img src="https://opencollective.com/mobx/backer/34/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/35/website" target="_blank"><img src="https://opencollective.com/mobx/backer/35/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/36/website" target="_blank"><img src="https://opencollective.com/mobx/backer/36/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/37/website" target="_blank"><img src="https://opencollective.com/mobx/backer/37/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/38/website" target="_blank"><img src="https://opencollective.com/mobx/backer/38/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/39/website" target="_blank"><img src="https://opencollective.com/mobx/backer/39/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/40/website" target="_blank"><img src="https://opencollective.com/mobx/backer/40/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/41/website" target="_blank"><img src="https://opencollective.com/mobx/backer/41/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/42/website" target="_blank"><img src="https://opencollective.com/mobx/backer/42/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/43/website" target="_blank"><img src="https://opencollective.com/mobx/backer/43/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/44/website" target="_blank"><img src="https://opencollective.com/mobx/backer/44/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/45/website" target="_blank"><img src="https://opencollective.com/mobx/backer/45/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/46/website" target="_blank"><img src="https://opencollective.com/mobx/backer/46/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/47/website" target="_blank"><img src="https://opencollective.com/mobx/backer/47/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/48/website" target="_blank"><img src="https://opencollective.com/mobx/backer/48/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/49/website" target="_blank"><img src="https://opencollective.com/mobx/backer/49/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/50/website" target="_blank"><img src="https://opencollective.com/mobx/backer/50/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/51/website" target="_blank"><img src="https://opencollective.com/mobx/backer/51/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/52/website" target="_blank"><img src="https://opencollective.com/mobx/backer/52/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/53/website" target="_blank"><img src="https://opencollective.com/mobx/backer/53/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/54/website" target="_blank"><img src="https://opencollective.com/mobx/backer/54/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/55/website" target="_blank"><img src="https://opencollective.com/mobx/backer/55/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/56/website" target="_blank"><img src="https://opencollective.com/mobx/backer/56/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/57/website" target="_blank"><img src="https://opencollective.com/mobx/backer/57/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/58/website" target="_blank"><img src="https://opencollective.com/mobx/backer/58/avatar.svg"></a>
<a href="https://opencollective.com/mobx/backer/59/website" target="_blank"><img src="https://opencollective.com/mobx/backer/59/avatar.svg"></a></p>
<p>&#x5373;&#x4FBF;&#x662F;&#x901A;&#x8FC7; paypal &#x7684;&#x4E00;&#x6B21;&#x6350;&#x8D60;&#xFF0C;&#x4E5F;&#x5C06;&#x4F1A;&#x88AB;&#x6DFB;&#x52A0;&#x5230;<a href="https://github.com/mobxjs/mobx/blob/master/sponsors.md" target="_blank">&#x8D5E;&#x52A9;&#x5546;</a>&#x5217;&#x8868;&#x3002;</p>
<p><a href="https://mobxjs.github.io/mobx/donate.html" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Donate"></a></p>
<h3 id="&#x8D5E;&#x52A9;&#x5546;"><a name="&#x8D5E;&#x52A9;&#x5546;" class="plugin-anchor" href="#&#x8D5E;&#x52A9;&#x5546;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8D5E;&#x52A9;&#x5546;</h3>
<p>&#x6210;&#x4E3A;&#x8D5E;&#x52A9;&#x5546;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x5728; Github &#x7684;&#x81EA;&#x8FF0;&#x6587;&#x4EF6;&#x4E2D;&#x5C55;&#x793A;&#x60A8;&#x7684; LOGO &#xFF0C;&#x5E76;&#x94FE;&#x63A5;&#x5230;&#x60A8;&#x7684;&#x7F51;&#x7AD9; [<a href="https://opencollective.com/mobx#sponsor" target="_blank">&#x6210;&#x4E3A;&#x8D5E;&#x52A9;&#x5546;</a>]</p>
<p><a href="https://opencollective.com/mobx/sponsor/0/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/1/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/2/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/3/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/4/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/5/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/6/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/7/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/8/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/9/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/9/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/10/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/10/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/11/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/11/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/12/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/12/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/13/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/13/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/14/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/14/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/15/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/15/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/16/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/16/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/17/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/17/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/18/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/18/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/19/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/19/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/20/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/20/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/21/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/21/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/22/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/22/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/23/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/23/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/24/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/24/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/25/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/25/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/26/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/26/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/27/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/27/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/28/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/28/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/29/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/29/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/30/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/30/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/31/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/31/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/32/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/32/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/33/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/33/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/34/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/34/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/35/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/35/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/36/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/36/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/37/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/37/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/38/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/38/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/39/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/39/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/40/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/40/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/41/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/41/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/42/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/42/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/43/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/43/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/44/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/44/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/45/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/45/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/46/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/46/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/47/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/47/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/48/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/48/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/49/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/49/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/50/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/50/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/51/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/51/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/52/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/52/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/53/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/53/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/54/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/54/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/55/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/55/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/56/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/56/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/57/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/57/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/58/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/58/avatar.svg"></a>
<a href="https://opencollective.com/mobx/sponsor/59/website" target="_blank"><img src="https://opencollective.com/mobx/sponsor/59/avatar.svg"></a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="intro/overview.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 1.1. MobX 要点">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1. MobX 介绍","level":"1.1","depth":1,"next":{"title":"1.1. MobX 要点","level":"1.1.1","depth":2,"path":"intro/overview.md","ref":"intro/overview.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github","edit-link","anchors","copy-code-button","github-buttons"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/SangKa/mobx-docs-cn"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"github-buttons":{"buttons":[{"user":"SangKa","repo":"MobX-Docs-CN","type":"star","size":"small","count":true},{"user":"SangKa","repo":"MobX-Docs-CN","type":"fork","size":"small","count":true}]},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"完善文档","base":"https://github.com/SangKa/mobx-docs-cn/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"MobX 中文文档","gitbook":"3.2.2"},"file":{"path":"README.md","mtime":"2018-09-18T13:06:39.928Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-09-18T13:06:52.064Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

